<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/static/admin/x-admin/css/font.css">
    <link rel="stylesheet" href="/static/admin/x-admin/css/xadmin.css">
    <script th:src="@{/static/admin/x-admin/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{/static/admin/x-admin/js/xadmin.js}"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card-body">
                <ul class="">
                    <li><button th:onclick="|openAddUi()|" class="layui-btn layui-btn">增加</button></li>
                </ul>
            </div>
            <div class="layui-card-body">
                <table class="layui-table layui-form">
                    <thead>
                    <tr>
                        <th><input name="" type="checkbox" value="" checked="checked"/></th>
                        <th>房间信息ID<i class="sort"></i></th>
                        <th>房间类型</th>
                        <th>房间描述</th>
                        <th>房间图片</th>
                        <th>房间价格</th>
                        <th>房间容量</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="table_item:${roomInfoList_db}">
                        <td><input name="" type="checkbox" value=""/></td>
                        <td th:text="${table_item.roomInfoId}"></td>
                        <td th:text="${table_item.roomType}"></td>
                        <td th:text="${table_item.roomDescription}"></td>
                        <td th:text="${table_item.roomImg}"></td>
                        <td th:text="${table_item.roomPrice}"></td>
                        <td th:text="${table_item.roomCapacity}"></td>
                        <td>
                            <a href="#" th:href="@{/room-info/delete(roomInfoId=${table_item.roomInfoId})}" class="layui-btn layui-btn-xs"> 删除</a>
                            <a href="#" th:href="@{/room-info/updateUI(roomInfoId=${table_item.roomInfoId})}" class="layui-btn layui-btn-xs">修改</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script>
    function openAddUi() {
        xadmin.open("添加",'/room-info/addUI',400,300)
    }
</script>
</body>
</html>
